<?php require_once('../../core/import.php');?>
<?php User::Permission('NEWS_ADD'); ?>
<?php
    if(!is_numeric($ID=Functions::UrlArgs('id')))
    {
        exit('信息ID不正确');
    }
    else
    {
        if($Data=DB::GetRowByID('news',$ID))
        {
			@unlink(Config::PATH_UPLOAD_ATTACHMENT_NEWS.'/'.$Data['Thumbnail']);
			DB::UpdateRowByID('news',$ID,array(
				'Thumbnail'=>''
			));
        }
        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }

?>